package com.zbkj.common.model.client.discovery;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@TableName(value = "eb_client_discovery", autoResultMap = true)
public class Discovery implements Serializable {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("link_id")
    private String linkId; // JSON字符串，数组形式

    @TableField("type")
    private String type; // agent/knowledge/group

    @TableField("author")
    private String author;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<String> tag; // JSON字符串

    @TableField("title")
    private String title;

    @TableField("description")
    private String description;

    @TableField("sort")
    private Integer sort;

    @TableField("user_count")
    private Integer userCount;

    @TableField("use_count")
    private Integer useCount;

    @TableField("package_level")
    private Integer packageLevel;

    @TableField("head_img")
    private String headImg;

    @TableField("video_url")
    private String videoUrl;

    @TableLogic
    @TableField("is_del")
    private Integer isDel;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;
} 